
<div class="panel-body pmb-block" style="border:none;" ng-controller="applydeployCtrl">
    <div class="form-horizontal">
      <div class="panel-body pmb-block" style="border:none;padding-top:0;">
          <div class="form-horizontal">
              <div class="modal-body">
                  <div class="">

                    <div class="modal-footer">
                      <form class="form-horizontal form-validation" name="addCabinetForm">
                       <div class="messdetail" style="padding:10px">
                       <img src="/statics/img/dashborad/infrastructure/db.png" alt="">
                      <div class="pmbb-body p-l-30" >
                      <div class="form-group">
                          <div class="col-lg-5" style="margin-top:30px" >
                            <label class="control-label">镜像名称：</label>
                            <div class="control-input special-select m-r-xxs">
                              <ui-select ng-model="scriptItem.selected" style="margin-bottom:10px"  theme="bootstrap">
                                <ui-select-match placeholder="选择或者从列表中搜索一个镜像">{{$select.selected.name}}</ui-select-match>
                                <ui-select-choices repeat="item in dataType | filter: $select.search">
                                  <div ng-bind-html="item.name | highlight: $select.search"></div>
                                </ui-select-choices>
                              </ui-select>
                        
                            </div>
                          </div>
                          <div class="col-lg-5" style="margin-top:30px" >
                                 <label class="control-label">集群：</label>
                                 <div class="control-input">
                                   <select class="form-control" name="clusterId" ng-model="clusterId" validator="required">
                                     <option value="">--请选择--</option>
                                     <option ng-repeat="item in masterData"  value="{{item.id}}" ng-bind="item.name"></option>
                                   </select>
                                 </div>
                         </div>
                      </div>
                  </div>
                      <div class="both"></div>
                    </div>
                        <div class="form-group" ng-repeat="(key,item) in envList track by $index">

                            <label class="control-label">环境变量：</label>
                            <div class="control-input" >
                              <div class="col-lg-5 nopadding">
                                <input class="form-control " name="key{{key}}"  placeholder="key" ng-model="item.key" validator="evn_opt" maxlength="64" maxlength-error-message="最多输入64个字符" type="text" />
                              </div>
                            <div class="col-lg-6">
                              <input class="form-control " name="value{{key}}"  placeholder="value" ng-model="item.value"  maxlength="64" maxlength-error-message="最多输入64个字符" type="text" />
                            </div>
                            <div class="col-lg-1 deployFa">
                              <a  ng-click= "addEnvs(key)"><i class="fa  fa-plus"></i></a>
                                 <a  ng-click="removeEnv(key)"><i class="fa fa-minus"></i></a>
                              </div>
                            </div>
                        </div>

                        <div class="form-group" ng-repeat="(key,item) in labelList track by $index">

                            <label class="control-label">标签：</label>
                            <div class="control-input">
                              <div class="col-lg-5 nopadding">
                                <input class="form-control " name="keys{{key}}" placeholder="key" ng-model="item.keys" validator="evn_opt" maxlength="64" maxlength-error-message="最多输入64个字符" type="text" />
                              </div>
                              <div class="col-lg-6">
                                <input class="form-control " name="values{{key}}" placeholder="value" ng-model="item.values"  maxlength="64" maxlength-error-message="最多输入64个字符" type="text" />
                              </div>

                            <div class="col-lg-1 deployFa">
                              <a  ng-click= "addLabels(key)"><i class="fa  fa-plus"></i></a>
                                 <a  ng-click="removeLabel(key)"><i class="fa fa-minus"></i></a>
                              </div>
                              </div>
                        </div>



                      <div class="form-group">
                          <label class="control-label">描述信息：</label>
                          <div class="control-input">
                            <textarea class="form-control" name="remark" ng-model="remark" maxlength="256" maxlength-error-message="最多输入256个字符"></textarea>
                          </div>
                        </div>
                      </form>
                    </div>
                  </div>

                  <div class="modal-footer">
                  	<button type="submit" class="btn btn-info" validation-submit="addCabinetForm||isLoadingActive" ng-disabled="addCabinetForm.$invalid" ng-click="ok()">确认</button>

                  </div>
              </div>
          </div>
      </div>

    </div>
</div>
